{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>帐户列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('index')}">
		{if $count == 0}
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						<a href="{:url('add')}" class="btn btn-primary btn-outline">绑定提现帐户</a>
					</div>
				</div>
			</div>
		</div>
		{/if}
		<div class="hr-line-dashed"></div>
		<div class="row">
                          <div class="form-group" >
                           		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 绑定类型<select name="type" id="type" class='bank'>
                                    <option value="0">绑定类型</option>
                                    <option value="1">银行卡</option>
                                    <option value="2">支付宝</option>
                                    <option value="3">微信</option>
                                </select>
                                	 类型关键字 <input type="text" placeholder="请输入关键词" class='bank'>
                                	<span class="bank"><button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                            </div>
                            
        </div>

        </form>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>绑定类型</th>
                                <th>银行卡</th>
                                <th>银行卡号</th>
                                <th>支付宝号</th>
                                <th>微信号</th>
                                <th>添加时间</th>
                                <th>操作</th>                                
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>
                        			{if $ad.type == 1}
                        			银行卡
                        			{elseif $ad.type == 2}
                        			支付宝
                        			{else}
                        			微信
                        			{/if}
                        		</td>
                        		<td>{$ad.bank_account}</td>
                        		<td>{$ad.card_no}</td>
                        		<td>{$ad.alipay}</td>
                        		<td>{$ad.wechat_account}</td>
                        		<td>{$ad.add_time}</td>
                        		<td>
                        			<a href="{:url('edit',['id'=>$ad.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
                        			{if condition="$vo.id neq 1"}
									<a href="{:url('delete',['id'=>$ad.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
									{/if}
                        		</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>
{/block}